<%--
  Created by IntelliJ IDEA.
  User: Doris丶Lee
  Date: 2020-05-20
  Time: 11:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户中心forward</title>
</head>
<body>
    <h1>用户资料</h1>
    <hr>
    <%
        request.setCharacterEncoding("utf-8");//防止中文乱码
        //防止下面表达式空指针异常
        String username = "";
        String password = "";
        String email = "";
        if(request.getParameter("username")!=null)
        {
            username = request.getParameter("username");
        }
        if(request.getParameter("password")!=null)
        {
            password = request.getParameter("password");
        }
        if(request.getParameter("email")!=null)
        {
            email = request.getParameter("email");
        }
    %>

    <%--使用表达式输出结果--%>
    用户名：<%=username %><br>
    密码：<%=password %><br>

    <%--测试param动作用--%>
    电子邮箱：<%=email %><br>
</body>
</html>
